package ochart.elements.background
{
	import flash.display.Sprite;
	
	import ochart.utils.ArrayUtil;

	public class Background extends BackgroundBase
	{
		public static const CLASS_NAME:String = "Background"

		override public function get className():String
		{
			return CLASS_NAME;
		}
		
		public static const ALIAS:String = "background";
		
		override public function get alias():String
		{
			return ALIAS;
		}
		
		private var defaultValue:Object = 
		{
			
		}
			
		private var _propertiesArray:Array = null;
		
		override public function get propertiesArray():Array
		{
			if(_propertiesArray)
			{
				return _propertiesArray;
			}
			
			_propertiesArray = super.propertiesArray;
			for(var name:String in defaultValue)
			{
				if(!ArrayUtil.containsValue(_propertiesArray, name))
				{
					_propertiesArray.push(name);
				}
			}
			return _propertiesArray;
		}
		
		public function Background()
		{
			super();
		}
		
		override public function getDefaultValue(name:String):*
		{
			return (defaultValue[name] === undefined) ? super.getDefaultValue(name) : defaultValue[name];
		}
		
	}
}